/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "工艺路线明细表",TableName = "process_route_detail",DBServer = "SmesDbContext")]
    public partial class process_route_detail:SmesEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int detail_id { get; set; }

       /// <summary>
       ///路线主键
       /// </summary>
       [Display(Name ="路线主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int route_id { get; set; }

       /// <summary>
       ///工序名称
       /// </summary>
       [Display(Name ="工序名称")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string routeName { get; set; }

       /// <summary>
       ///工序父ID
       /// </summary>
       [Display(Name ="工序父ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int parentid { get; set; }

       /// <summary>
       ///工序顺序
       /// </summary>
       [Display(Name ="工序顺序")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int sequence { get; set; }

       /// <summary>
       ///材料ID
       /// </summary>
       [Display(Name ="材料ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? material_id { get; set; }

       /// <summary>
       ///单件材料消耗量
       /// </summary>
       [Display(Name ="单件材料消耗量")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? material_quantity { get; set; }

       /// <summary>
       ///路径编号(主路径=1)
       /// </summary>
       [Display(Name ="路径编号(主路径=1)")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int path_number { get; set; }

       /// <summary>
       ///分支路径编号
       /// </summary>
       [Display(Name ="分支路径编号")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? next_path { get; set; }

       /// <summary>
       ///流转类型ID
       /// </summary>
       [Display(Name ="流转类型ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int transfer_type { get; set; }

       /// <summary>
       ///是否虚拟工序
       /// </summary>
       [Display(Name ="是否虚拟工序")]
       [Column(TypeName="tinyint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public byte is_virtual { get; set; }

       /// <summary>
       ///流转触发条件类型
       /// </summary>
       [Display(Name ="流转触发条件类型")]
       [MaxLength(6)]
       [Column(TypeName="nvarchar(6)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string condition_type { get; set; }

       
    }
}